package com.wzb.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.wzb.mybatisplus.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User>{
    @Select("UPDATE user SET user_name = ${userName} ${ew.customSqlSegment}")
    void updataUserNameById(@Param("userName") String userName, @Param("ew") LambdaQueryWrapper<User> wrapper);
}
